import request from '@/utils/request'

// 查询时长申请列表
export function listDurationApply (query) {
  return request({
    url: '/angel/durationApply/list',
    method: 'get',
    params: query
  })
}

// 查询时长申请详细
export function getDurationApply (id) {
  return request({
    url: '/angel/durationApply/' + id,
    method: 'get'
  })
}

// 新增时长申请
export function addDurationApply (data) {
  return request({
    url: '/angel/durationApply',
    method: 'post',
    data: data
  })
}

// 修改时长申请
export function updateDurationApply (data) {
  return request({
    url: '/angel/durationApply',
    method: 'put',
    data: data
  })
}

// 删除时长申请
export function delDurationApply (id) {
  return request({
    url: '/angel/durationApply/' + id,
    method: 'delete'
  })
}

// 导出时长申请
export function exportDurationApply (query) {
  return request({
    url: '/angel/durationApply/export',
    method: 'get',
    params: query
  })
}
